package com.ourteam.workspace.dao;

import net.dao.IDataAccessInterface;

/**
 * Template Name : DAO接口模板 Template Version : 1 Template Last Modfiy Date : Thu Sep 21 11:14:14 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:24 Warning ! This file will be overwrite when
 * regenerate !
 */
public interface IBaseWorkspaceResourceDAO
    extends IDataAccessInterface<WorkspaceResource, WorkspaceResourceDAOQueryBean> {

  /** Mapped Entity Name */
  static final String EntityName = "WORKSPACE_RESOURCE";

  /** Mapped Field ID */
  static final String Id = "WORKSPACE_RESOURCE.ID";

  /** Mapped Field DESCRIPTION */
  static final String Description = "WORKSPACE_RESOURCE.DESCRIPTION";

  /** Mapped Field ORDER_INDEX */
  static final String OrderIndex = "WORKSPACE_RESOURCE.ORDER_INDEX";

  /** Mapped Field RESOURCE_PATH */
  static final String ResourcePath = "WORKSPACE_RESOURCE.RESOURCE_PATH";

  /** Mapped Field RESOURCE_TYPE */
  static final String ResourceType = "WORKSPACE_RESOURCE.RESOURCE_TYPE";

  /** Mapped Field STATUS */
  static final String Status = "WORKSPACE_RESOURCE.STATUS";

  /** Mapped Field WORKSPACE_ID */
  static final String WorkspaceId = "WORKSPACE_RESOURCE.WORKSPACE_ID";

  /** Mapped Field NAME */
  static final String Name = "WORKSPACE_RESOURCE.NAME";

  /** Mapped Attribute workspaceName */
  static final String WorkspaceName =
      org.apache.commons.lang.StringUtils.replace(
          com.ourteam.workspace.dao.IWorkspaceDAO.Name,
          com.ourteam.workspace.dao.IWorkspaceDAO.EntityName + ".",
          "workspaceA.");

  /** Mapped Attribute workspacePath */
  static final String WorkspacePath =
      org.apache.commons.lang.StringUtils.replace(
          com.ourteam.workspace.dao.IWorkspaceDAO.WorkspacePath,
          com.ourteam.workspace.dao.IWorkspaceDAO.EntityName + ".",
          "workspaceA.");

  public static interface DataProperty {

    /** Attribute id */
    static final String Id = "id";

    /** Attribute description */
    static final String Description = "description";

    /** Attribute orderIndex */
    static final String OrderIndex = "orderIndex";

    /** Attribute resourcePath */
    static final String ResourcePath = "resourcePath";

    /** Attribute resourceType */
    static final String ResourceType = "resourceType";

    /** Attribute status */
    static final String Status = "status";

    /** Attribute workspaceId */
    static final String WorkspaceId = "workspaceId";

    /** Attribute name */
    static final String Name = "name";

    /** Attribute workspacePath */
    static final String WorkspacePath = "workspacePath";

    /** Attribute workspaceName */
    static final String WorkspaceName = "workspaceName";
  }

  public static interface _DataObjectProperty extends DataProperty {}

  /**
   * Delete Data
   *
   * @param final long id
   * @throws Exception
   */
  void delete(final long id) throws Exception;
  /**
   * Find Data By Primary Key
   *
   * @param final long id
   * @throws Exception
   */
  WorkspaceResource findById(final long id) throws Exception;

  /**
   * Query Related WorkspaceResourceBusinessPackageRelate
   *
   * @param aQueryBean
   * @throws Exception
   */
  com.ourteam.workspace.dao.WorkspaceResourceBusinessPackageRelate[]
      queryWorkspaceResourceBusinessPackageRelate(final WorkspaceResourceDAOQueryBean queryBean)
          throws Exception;

  /**
   * Query Related WorkspaceResourceBusinessPackageRelate Selective
   *
   * @param queryBean
   * @throws Exception
   */
  java.util.Map<String, Object>[] queryWorkspaceResourceBusinessPackageRelateSelective(
      final WorkspaceResourceDAOQueryBean queryBean) throws Exception;

  /**
   * Update Related WorkspaceResourceBusinessPackageRelate
   *
   * @param aWorkspaceResourceBusinessPackageRelate
   * @param queryBean
   * @throws Exception
   */
  void updateWorkspaceResourceBusinessPackageRelate(
      final com.ourteam.workspace.dao.WorkspaceResourceBusinessPackageRelate
          aWorkspaceResourceBusinessPackageRelate,
      WorkspaceResourceDAOQueryBean queryBean)
      throws Exception;

  /**
   * Delete Related WorkspaceResourceBusinessPackageRelate
   *
   * @param queryBean
   * @throws Exception
   */
  void deleteWorkspaceResourceBusinessPackageRelate(final WorkspaceResourceDAOQueryBean queryBean)
      throws Exception;
}
